@extends('edu.layouts.master')
@section('content')
    <div class="main-content">
        <div class="container mt-5">
            <div class="card">
                <div class="card-header">
                    全站动态
                </div>
                <div class="card-body">
                    <ul class="list-group list-group-lg list my--4">
                        @foreach($activities as $activity)
                            @switch($activity['log_name'])
                                @case('edu_topic')
                                @include('edu.activity._topic',['activity'=>$activity])
                                @break;
                                @case('edu_zan')
                            @include('edu.activity._zan',['activity'=>$activity])
                                @break;
                            @endswitch
                        @endforeach
                    </ul>
                </div>
                <div class="card-footer text-muted">
                    {{$activities->links()}}
                </div>
            </div>
        </div>
    </div>
@endsection